package net.hky365.shop.module.bpm.service.oa;

import lombok.extern.slf4j.Slf4j;
import net.hky365.shop.module.bpm.event.BpmProcessInstanceStatusEvent;
import net.hky365.shop.module.bpm.event.BpmProcessInstanceStatusEventListener;
import net.hky365.shop.module.bpm.service.oa.BpmOALeaveServiceImpl;
import org.springframework.stereotype.Component;

/**
 * 测试监听器实现类
 *
 * @author 芋道源码
 */
@Component
@Slf4j
public class BpmTestStatusListener extends BpmProcessInstanceStatusEventListener {

    @Override
    protected String getProcessDefinitionKey() {
        return "CWLC";
    }

    @Override
    protected void onEvent(BpmProcessInstanceStatusEvent event) {
        log.info("[BpmTestStatusListener]BusinessKey：{}，Status：{} ", event.getBusinessKey(),event.getStatus());
    }
}
